package com.ruoyi.course.mapper;

import java.util.List;
import com.ruoyi.course.domain.CdStudentTopic;

/**
 * 学生选课Mapper接口
 * 
 * @author ruoyi
 * @date 2023-12-20
 */
public interface CdStudentTopicMapper 
{
    /**
     * 查询学生选课
     * 
     * @param studentId 学生选课主键
     * @return 学生选课
     */
    public List<CdStudentTopic> selectCdStudentTopicByStudentId(Long studentId);

    /**
     * 根据课题查询学生选题情况
     * @param topicId
     * @return
     */
    public List<CdStudentTopic> selectCdStudentTopicByTopicId(Long topicId);

    /**
     * 查询学生选课列表
     * 
     * @param cdStudentTopic 学生选课
     * @return 学生选课集合
     */
    public List<CdStudentTopic> selectCdStudentTopicList(CdStudentTopic cdStudentTopic);

    /**
     * 新增学生选课
     * 
     * @param cdStudentTopic 学生选课
     * @return 结果
     */
    public int insertCdStudentTopic(CdStudentTopic cdStudentTopic);

    /**
     * 修改学生选课
     * 
     * @param cdStudentTopic 学生选课
     * @return 结果
     */
    public int updateCdStudentTopic(CdStudentTopic cdStudentTopic);

    /**
     * 删除学生选课
     * 
     * @param studentId 学生选课主键
     * @return 结果
     */
    public int deleteCdStudentTopicByStudentId(Long studentId);

    /**
     * 批量删除学生选课
     * 
     * @param studentIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCdStudentTopicByStudentIds(Long[] studentIds);
}
